package com.liehu.user.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户详细信息表
 */
@TableName("tb_detail_customer")
public class DetailCustomer  implements Serializable {
    private String id;
    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;//出生年月
    private String certificate;//证书
    private String education;//学历
    private String idCard;//身份证号码
    private String professional;//职称
    private String realName;//真实姓名
    private String registered;//户籍性质
    private String registeredCity;//户籍地址
    private String emergencyMobile;//紧急联系人电话
    private String emergency;//紧急联系人
    private String marry;//是否已婚，0为否，1为是
    private String birth;//是否已育，0为否，1为是



    private String customerId;//客户表外键

    @TableField(fill = FieldFill.INSERT) //使用Mybatis-plus插入时自动填充时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE) //使用Mybatis-plus插入更新时自动填充时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRegistered() {
        return registered;
    }

    public void setRegistered(String registered) {
        this.registered = registered;
    }

    public String getRegisteredCity() {
        return registeredCity;
    }

    public void setRegisteredCity(String registeredCity) {
        this.registeredCity = registeredCity;
    }

    public String getEmergencyMobile() {
        return emergencyMobile;
    }

    public void setEmergencyMobile(String emergencyMobile) {
        this.emergencyMobile = emergencyMobile;
    }

    public String getEmergency() {
        return emergency;
    }

    public void setEmergency(String emergency) {
        this.emergency = emergency;
    }

    public String getMarry() {
        return marry;
    }

    public void setMarry(String marry) {
        this.marry = marry;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "DetailCustomer{" +
                "id='" + id + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", certificate='" + certificate + '\'' +
                ", education='" + education + '\'' +
                ", idCard='" + idCard + '\'' +
                ", professional='" + professional + '\'' +
                ", realName='" + realName + '\'' +
                ", registered='" + registered + '\'' +
                ", registeredCity='" + registeredCity + '\'' +
                ", emergencyMobile='" + emergencyMobile + '\'' +
                ", emergency='" + emergency + '\'' +
                ", marry='" + marry + '\'' +
                ", birth='" + birth + '\'' +
                ", customerId='" + customerId + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
